package com.purchase.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.Map;

@MyBatisRepository
public interface MemberRefundPayMapper {

    /**
     * 保存退款流水
     *
     * @param paramMap
     * @return
     */
    int saveRefundPayOrder(Map<String, Object> paramMap);

    /**
     * 修改退款流水
     *
     * @param paramMap
     * @return
     */
    int modifyRefundPayOrder(Map<String, Object> paramMap);

    /**
     * 根据 orderId 获取退款流水
     *
     * @param orderId
     * @return
     */
    Map<String, Object> getRefundPayOrderByOrderId(@Param("orderId") String orderId);

    /**
     * 根据 id 获取退款流水
     *
     * @param id
     * @return
     */
    Map<String, Object> getRefundPayOrderById(@Param("id") String id);

    /**
     * 删除会员关联关系
     * @param paramMap
     * @return
     */
    int disableMember(Map<String, Object> paramMap);

}
